from ronglian_sms_sdk import SmsSDK


class RongLianYunSms(object):
    accId = '8aaf0708732220a601746758686b092b'
    accToken = 'b1434d39926143199964e0e3ccf4aec5'
    appId = '8aaf0708732220a60174675869460932'
    tid = '1'

    def __init__(self):
        self.sdk = SmsSDK(self.accId, self.accToken, self.appId)

    def send_sms(self, phone, datas):
        resp = self.sdk.sendMessage(self.tid, phone, datas)
        return resp


if __name__ == '__main__':
    rly = RongLianYunSms()
    a = rly.send_sms('15321209160', '1')
    print(a)
